﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ChinaClipping.ClippingMaster
{
    public partial class Dlg_ExportOption : Form
    {
        private static Dlg_ExportOption dlg = new Dlg_ExportOption();

        private Dlg_ExportOption()
        {
            InitializeComponent();
        }
        public static Dlg_ExportOption GetDialog()
        {
            return dlg;
        }
        private void OK_Button_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Hide();
        }

        private void Cancel_Button_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Hide();
        }

        private void Dlg_ExportOption_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                this.DialogResult = DialogResult.Cancel;
                e.Cancel = true;
                this.Hide();
            }
        }

        public bool SaveAll
        {
            get 
            {
                return radioButton_ExportAll.Checked;
            }
        }
    }
}
